package com.Mobile.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "emotion", catalog = "monitor")
public class Emotion implements java.io.Serializable {

	private Integer userId;
	private String emotionValue;
	private String createDate;
	private Integer Number;
	
	/** full constructor */
	public Emotion(Integer userId, String emotionValue, String createDate) {
		this.userId = userId;
		this.emotionValue = emotionValue;
		this.createDate = createDate;
	}
	
	public Emotion() {
		// TODO Auto-generated constructor stub
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "Number", unique = true, nullable = false)
	public Integer getNumber() {
		return Number;
	}

	public void setNumber(Integer number) {
		Number = number;
	}

	/*@GeneratedValue(strategy = IDENTITY)*/
	@Column(name = "UserId",nullable = false)
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	@Column(name = "EmotionValue")
	public String getEmotionValue() {
		return emotionValue;
	}

	public void setEmotionValue(String emotionValue) {
		this.emotionValue = emotionValue;
	}
	@Column(name = "CreateDate")
	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

}
